package com.itxiuyixiu.homework.utils.ReturnUtils;

import java.io.Serializable;

/**
 * @author 黄磊
 * @date 2020/1/26
 */
public class ReturnVo implements Serializable {
    private ReturnState state;
    private Object message;

    public enum ReturnState {SUCCESS, FAILURE}

    public ReturnVo() {
    }

    public ReturnVo(ReturnState state, Object message) {
        this.state = state;
        this.message = message;
    }

    public ReturnState getState() {
        return state;
    }

    public void setState(ReturnState state) {
        this.state = state;
    }

    public Object getMessage() {
        return message;
    }

    public void setMessage(Object message) {
        this.message = message;
    }
}
